package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @author wzh
 * @TableName book
 */
@TableName(value ="book")
@Data
public class Book implements Serializable {

    /**
     * 书本id
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 书本名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 书本封面图片
     */
    @TableField(value = "cover_img")
    private String coverImg;

    /**
     * 书本摘要
     */
    @TableField(value = "summary")
    private String summary;

    /**
     * 书本单本价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 库存
     */
    @TableField(value = "inventory")
    private Integer Inventory;




    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}